#ifndef CHOOSEONEPOKER_H
#define CHOOSEONEPOKER_H

#include <QDialog>
#include "poker.h"
#include <QVector>
#include <countdown.h>
namespace Ui {
class ChooseOnePoker;
}

class ChooseOnePoker : public QDialog
{
    Q_OBJECT

public:
    explicit ChooseOnePoker(QWidget *parent ,QVector<int> need_choose_poker_v,int step_v = 10);
    ~ChooseOnePoker();
    int getResult() const;//获取返回值

public slots:
    void clicked_one_poker(bool isUp,Poker * poker);

protected:
    virtual void closeEvent(QCloseEvent *e);
private slots:
    void on_confirm_clicked();

private:
    Ui::ChooseOnePoker *ui;
    QVector<Poker *> need_choose_poker;
    CountDown * cd;
    int step;
    int result;
    void sort_poker();
};

#endif // CHOOSEONEPOKER_H
